﻿using MediatR;
using SqlSugar;
using T.Common.Domain.Common;

namespace RedDragon.ERP.API.Application.Commands.MaterialPlanning
{
    /// <summary>
    /// 物料需求计划添加Command
    /// </summary>
    public class CreatePlanCommand:IRequest<Result>
    {
        /// <summary>
        /// 计划ID
        /// </summary>
        public int PlanId { get; set; }
        /// <summary>
        /// 计划编码
        /// </summary>
        public string? PlanCode { get; set; }
        /// <summary>
        /// 计划名称
        /// </summary>
        public string? PlanName { get; set; }
        /// <summary>
        /// 计划描述
        /// </summary>
        public string? PlanDec { get; set; }
        /// <summary>
        /// 制单人
        /// </summary>
        public string? SingleMaker { get; set; }
        /// <summary>
        /// 部门ID(序号)
        /// </summary>
        public int DepartmentId { get; set; }
        /// <summary>
        /// 状态 1-新建；2-确认；3-变更
        /// </summary>
        public int IsStatus { get; set; }
        /// <summary>
        /// 是否删除 1-未删除；2-删除
        /// </summary>
        public int IsDel { get; set; }
        /// <summary>
        /// 审核状态 1-未提交；2-已审批；3-已提交
        /// </summary>
        public int AuditStatus { get; set; }
        /// <summary>
        /// 创建人
        /// </summary>
        public string? CreatedOwner { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreatedTime { get; set; }

        /// <summary>
        /// 修改人
        /// </summary>
        public string? UpdateOwner { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }

        /// <summary>
        /// 审核人
        /// </summary>
        public string? ExamineOwner { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? ExamineTime { get; set; }
    }
}
